package com.example.wireless2_spring_boot.service;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.example.wireless2_spring_boot.damain.User;
import com.example.wireless2_spring_boot.mapper.UserMapper;

import java.util.List;

/**
 * @author XiaolongLi
 * Description:
 * @date 2021-10-16 15:35
 */
@Service
public class UserService {

    @Resource
    private UserMapper userMapper;


    public int deleteByPrimaryKey(Integer id) {
        return userMapper.deleteByPrimaryKey(id);
    }


    public int insert(User record) {
        return userMapper.insert(record);
    }


    public int insertSelective(User record) {
        return userMapper.insertSelective(record);
    }


    public User selectByPrimaryKey(Integer id) {
        return userMapper.selectByPrimaryKey(id);
    }


    public int updateByPrimaryKeySelective(User record) {
        return userMapper.updateByPrimaryKeySelective(record);
    }


    public int updateByPrimaryKey(User record) {
        return userMapper.updateByPrimaryKey(record);
    }

    public List<User> selectAll() {
        return userMapper.selectAll();
    }
}

